<template>
  <div class="vip-header-container">
    <p class="vip-title">会员专区</p>
    <div class="content">
      <div class="creator">
        <el-avatar
          :size="50"
          :src="'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'"
        />
      </div>
      <div class="vip-mid">
        <div class="vip-user">
          <div class="name">
            用户名
            <span class="level_box">
              <i class="lv"></i>
              <i class="lv1"></i>
            </span>
          </div>
          <div class="vip-tip">开通会员尊享10大特权</div>
        </div>
        <div class="right-item" @click="$router.push('/mine/member')">
          <span
            class="icon"
            style="background-image: url(https://rs.dance365.com/teach_video_free.png)"
          ></span>
          <p>以下<i>743</i>个会员专区课程<br />全部免费学习</p>
        </div>
        <div class="right-item" @click="$router.push('/mine/member')">
          <span
            class="icon"
            style="background-image: url(https://rs.dance365.com/member_preferential.png)"
          ></span>
          <p>
            购买非会员专区课程<br />
            可获会员立减优惠
          </p>
        </div>
      </div>
      <div @click="$router.push('/mine/member')">
        <el-button type="" class="vip-fee-button" round><span>立即开通</span></el-button>
        <span class="more-right">查看/开通></span>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({
  name: 'Member',
});
</script>

<script setup lang="ts">
</script>

<style scoped lang="less">
//会员
.vip-header-container {
  color: #111;
  background-color: #fff;
  margin-top: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  padding: 20px 30px 16px;
  .vip-title {
    font-size: 16px;
    margin: 0 0 16px;
    font-weight: 400;
  }
  .content {
    position: relative;
    display: flex;
    align-items: center;
    .creator {
      margin-right: 10px;
      width: 50px;
      height: 50px;
      cursor: pointer;
    }
    .vip-mid {
      display: flex;
      flex: 1;
      align-items: center;
      .vip-user {
        position: relative;
        min-width: 220px;
        :before {
          content: '';
          height: 40px;
          border-left: 1px solid #dee2e6;
          position: absolute;
          top: 50%;
          right: 0;
          transform: translateY(-50%);
        }
        .name {
          padding-top: 4px;
          font-size: 16px;
          .level_box {
            box-sizing: border-box;
            background: linear-gradient(#ff289b, #ff43d0);
            border: 1px solid #fff;
            border-radius: 4px;
            padding: 0 8px;
            display: inline-block !important;
            line-height: 1.15;
            white-space: nowrap;
            cursor: pointer;
            .lv {
              display: inline-block;
              background-size: 100%;
              background-repeat: no-repeat;
              width: 15px;
              height: 10px;
              background-image: url(https://rs.dance365.com/level_Lv.@3x.png);
            }
            .lv1 {
              width: 8px;
              height: 10px;
              display: inline-block;
              background-size: 100%;
              background-repeat: no-repeat;
              background-image: url(https://rs.dance365.com/level_num_1@3x.png);
            }
          }
        }
        .vip-tip {
          margin-top: 8px;
          font-size: 12px;
          color: #f93684;
        }
      }
      .right-item {
        flex: 1;
        text-align: center;
        cursor: pointer;
        .icon {
          width: 58px;
          height: 58px;
          display: inline-block;
          background-size: 100%;
          vertical-align: middle;
          margin-right: 30px;
        }
        p {
          display: inline-block;
          vertical-align: middle;
          i {
            font-style: normal;
            color: #f93684;
          }
        }
      }
    }
    .vip-fee-button {
      color: #fff;
      background-color: #f93684;
      border-color: #f93684;
      border-radius: 20px;
      display: block;
      margin-bottom: 8px;
    }
    .more-right {
      color: #7d8090;
      font-size: 12px;
    }
  }
}
</style>
